package com.leanyuan.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.leanyuan.dao.TCarinfoMapper_V;
import com.leanyuan.domain.TCarinfo;
import com.leanyuan.service.TCarinfoService_V;
import com.leanyuan.vo.CarInfoVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 相亲相爱一家人
 * @since 2021-05-25
 */
@Service
public class TCarinfoServiceVImpl_V extends ServiceImpl<TCarinfoMapper_V, TCarinfo> implements TCarinfoService_V {
    @Autowired
    TCarinfoMapper_V tCarinfoMapperV;

    @Override
    public IPage<CarInfoVO> getCarInfoAll(Page<CarInfoVO> page) {
        return this.tCarinfoMapperV.findByPage(page);
    }

    @Override
    public IPage<CarInfoVO> getCarInfoByParam(Page<CarInfoVO> page, String carNumber, String parkingSpaceNumber, String carType) {
        return this.tCarinfoMapperV.findPageByParam(page,carNumber,parkingSpaceNumber,carType);
    }
}
